//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2010, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//**********************************************************************
// $Header: /Alaska/Tools/template.c 6     1/13/10 2:13p Felixp $
//
// $Revision: 6 $
//
// $Date: 1/13/10 2:13p $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/Tools/template.c $
// 
// 6     1/13/10 2:13p Felixp
// 
//**********************************************************************
//<AMI_FHDR_START>
//
// Name:  <This File's Name>
//
// Description:	
//
//<AMI_FHDR_END>
//**********************************************************************

#include <AmiDxeLib.h>
#include <Setup.h>
#include <OemDxeLib\OemDxeLib.h>

EFI_STATUS InitOemStrings(
        IN EFI_HII_HANDLE   HiiHandle,
            IN UINT16           Class )
{
    if(Class  == CHIPSET_FORM_SET_CLASS)
    {
       InitString(HiiHandle,
                   STRING_TOKEN(STR_OEM_SETUP_TEXT1),
                   L"Oem Text2"); 
       
       InitString(HiiHandle,
                          STRING_TOKEN(STR_OEM_SETUP_HELP1),
                          L"Oem Option Help2");
    }
              return EFI_SUCCESS;
}

EFI_STATUS OemSetupCallback(    
        IN EFI_HII_HANDLE HiiHandle, 
        IN UINT16         Class, 
        IN UINT16         SubClass, 
        IN UINT16         Key)
{  
	CALLBACK_PARAMETERS     *Callback = NULL;
  
	Callback = GetCallbackParameters();
	if (!Callback || Callback->Action != EFI_BROWSER_ACTION_CHANGING)
		return EFI_UNSUPPORTED;
	
	if(Key == Oem_KEY)
		InitString(HiiHandle,STRING_TOKEN(STR_OEM_SETUP_TIME),
					   L"%x:%x:%x",CmosDxeRead(0x04),CmosDxeRead(0x02),CmosDxeRead(0x00));

	return EFI_SUCCESS;
}
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2010, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************
